how to switch between gui mode and textmode in linux